package nc.ui.pn.temp;

import nc.ui.pn.pub.PlanControl;
import nc.ui.trade.button.IBillButton;
import nc.vo.lm.pub.LmBillStatus;
import nc.vo.lm.pub.LmPubBillButton;
import nc.vo.pn.temp.PlanTempBVO;
import nc.vo.pn.year.PlanHVO;
import nc.vo.trade.pub.HYBillVO;

public class ClientController extends PlanControl {

    public String getBillType() {
        return LmBillStatus.BILL_TYPE_PLAN_TEMP;
    }

    public String[] getBillVoName() {
        return new String[] { HYBillVO.class.getName(), PlanHVO.class.getName(),
                PlanTempBVO.class.getName() };
    }

    public int[] getCardButtonAry() {
        int[] buttonArray = new int[] { IBillButton.Add, IBillButton.Edit, IBillButton.Save,
                IBillButton.Cancel, IBillButton.Query, IBillButton.Action, IBillButton.Del,
                IBillButton.Line, IBillButton.Brow, IBillButton.Refresh, IBillButton.Return,
                IBillButton.Print,  LmPubBillButton.LINKQUERY,  LmPubBillButton.PLAN,IBillButton.ApproveInfo,IBillButton.Copy};
        return buttonArray;
    }

    public int[] getListButtonAry() {
        int[] buttonArray = new int[] { IBillButton.Add, IBillButton.Edit, IBillButton.Save,
                IBillButton.Cancel, IBillButton.Query, IBillButton.Action, IBillButton.Del,
                IBillButton.Line, IBillButton.Brow, IBillButton.Refresh, IBillButton.Card,
                IBillButton.Print,LmPubBillButton.LINKQUERY,  LmPubBillButton.PLAN,IBillButton.ApproveInfo,IBillButton.Copy
               // ,LmPubBillButton.IMPROT 
                };
        return buttonArray;
    }

    public String getChildPkField() {
        return "cplanmonthid";
    }

    public String getPkField() {
        return "cplanid";
    }

}
